package com.vipheyue.bigcompany.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.vipheyue.bigcompany.R;
import com.vipheyue.bigcompany.activity.PublishedActivity;
import com.vipheyue.bigcompany.activity.ReleaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class ReNameFragment0 extends Fragment {
    View view;
    @Bind(R.id.bt_ReleaseJob)
    Button bt_ReleaseJob;
    @Bind(R.id.bt_scan_myReleaseJob)
    Button bt_scan_myReleaseJob;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.rename_fragment0, null);
        ButterKnife.bind(this, view);
        return view;
    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick({R.id.bt_ReleaseJob, R.id.bt_scan_myReleaseJob})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_ReleaseJob:
                startActivity(new Intent(getActivity(), ReleaseActivity.class));
                break;
            case R.id.bt_scan_myReleaseJob:
                startActivity(new Intent(getActivity(), PublishedActivity.class));
                break;
        }
    }
}
